home *** CD-ROM | disk | FTP | other *** search
- *** 1.36 1992/01/29 21:08:08
- --- PatchLev.h 1992/03/06 19:33:27
- ***************
- *** 1,5 ****
-
- ! #define PatchLevel "75"
-
- /*
- *
- --- 1,5 ----
-
- ! #define PatchLevel "76"
-
- /*
- *
- *** 1.10 1991/06/20 02:21:30
- --- assert.h 1992/03/06 19:33:27
- ***************
- *** 45,50 ****
- --- 45,54 ----
- #else
-
-
- + #ifndef __SOZOBON__
- + /* There's a bug in Sozobon 2.0 whereby __LINE__ & __FILE__ are defined but
- + * testing #ifndef __?I?E__ comes out as if they aren't. */
- +
- #ifndef __LINE__
- #define __LINE__ 0
- #endif
- ***************
- *** 51,56 ****
- --- 55,62 ----
- #ifndef __FILE__
- #define __FILE__ "unknown"
- #endif
- +
- + #endif /* __SOZOBON__ */
-
- #define assert(cond) \
- if(!(cond)) \
- *** 1.3 1991/12/26 16:23:20
- --- compiler.h 1992/03/06 19:33:28
- ***************
- *** 40,47 ****
- #endif
-
- #ifdef __SOZOBON__
- #define void char
- ! /* sozobon knows about void, but void * confuses it a bit */
- #define __SIZE_TYPEDEF__ unsigned int
- #define __PTRDIFF_TYPEDEF__ long
- #define __WCHAR_TYPEDEF__ char
- --- 40,52 ----
- #endif
-
- #ifdef __SOZOBON__
- + /* Doesn't know (void *) is special (but can handle it); this works better. */
- + #define __NULL (0L)
- +
- + #ifdef OLD_SOZOBON
- #define void char
- ! #endif
- !
- #define __SIZE_TYPEDEF__ unsigned int
- #define __PTRDIFF_TYPEDEF__ long
- #define __WCHAR_TYPEDEF__ char
- ***************
- *** 51,61 ****
-
- /* these are common to all compilers on the ST, I think */
- #define __VA_LIST__ char *
- ! #ifdef __MSHORT__
- ! #define __NULL ((void *)0)
- ! #else
- ! /* avoid complaints about misuse of NULL :-)*/
- ! #define __NULL (0)
- #endif
-
- #if __STDC__ || defined(__cplusplus)
- --- 56,69 ----
-
- /* these are common to all compilers on the ST, I think */
- #define __VA_LIST__ char *
- !
- ! #ifndef __NULL
- ! # ifdef __MSHORT__
- ! # define __NULL ((void *)0)
- ! # else
- ! /* avoid complaints about misuse of NULL :-)*/
- ! # define __NULL (0)
- ! # endif
- #endif
-
- #if __STDC__ || defined(__cplusplus)
- *** 1.10 1992/01/29 21:08:08
- --- ctype.h 1992/03/06 19:33:28
- ***************
- *** 13,19 ****
- extern "C" {
- #endif
-
- ! extern unsigned char _ctype[];
-
- #define _CTc 0x01 /* control character */
- #define _CTd 0x02 /* numeric digit */
- --- 13,19 ----
- extern "C" {
- #endif
-
- ! extern unsigned char *_ctype;
-
- #define _CTc 0x01 /* control character */
- #define _CTd 0x02 /* numeric digit */
- *** 1.3 1989/03/27 09:12:06
- --- file.h 1992/03/06 19:33:30
- ***************
- *** 1,6 ****
- --- 1,20 ----
- #ifndef _FILE_H
- #define _FILE_H
-
- + #ifdef __MINT__
- + # ifndef _COMPILER_H
- + # include <compiler.h>
- + # endif
- +
- + /* lockf() comands */
- + # define LOCK_SH 1 /* shared lock */
- + # define LOCK_EX 2 /* exclusive lock */
- + # define LOCK_NB 4 /* non-blocking */
- + # define LOCK_UN 8 /* unlock */
- +
- + __EXTERN int flock __PROTO((int, int));
- + #endif /* __MINT__ */
- +
- #include <fcntl.h>
-
- #endif /* _FILE_H */
- *** 1.24 1992/01/29 21:08:08
- --- osbind.h 1992/03/06 19:33:36
- ***************
- *** 89,94 ****
- --- 89,98 ----
- extern "C" {
- #endif
-
- + #ifndef _OSTRUCT_H
- + #include <ostruct.h>
- + #endif
- +
- /* want to skip all the gory details of GNU C inlines??
- search for the string "DEFINITIONS" */
-
- ***************
- *** 1126,1133 ****
- (void)trap_14_wl((short)(0x20),(long)(ptr))
- #define Setprt(config) \
- (short)trap_14_ww((short)(0x21),(short)(config))
- ! #define Kbdvbase() \
- ! (void (**)(void))trap_14_w((short)(0x22))
- #define Kbrate(delay,reprate) \
- (short)trap_14_www((short)(0x23),(short)(delay),(short)(reprate))
- #define Prtblk(pblkptr) \
- --- 1130,1137 ----
- (void)trap_14_wl((short)(0x20),(long)(ptr))
- #define Setprt(config) \
- (short)trap_14_ww((short)(0x21),(short)(config))
- ! #define Kbdvbase() \
- ! (_KBDVECS*)trap_14_w((short)(0x22))
- #define Kbrate(delay,reprate) \
- (short)trap_14_www((short)(0x23),(short)(delay),(short)(reprate))
- #define Prtblk(pblkptr) \
- ***************
- *** 1214,1223 ****
- #define Bconctl(opcode,operand) \
- (long)trap_14_wwl((short)(0x2d),(short)(opcode),(long)(operand))
-
-
- ! #ifndef _OSTRUCT_H
- ! #include <ostruct.h>
- ! #endif
-
- #if defined(__cplusplus)
- }
- --- 1218,1229 ----
- #define Bconctl(opcode,operand) \
- (long)trap_14_wwl((short)(0x2d),(short)(opcode),(long)(operand))
-
- + /* Wake-up call for ST BOOK -- takes date/time pair in DOS format. */
-
- ! #define Waketime(w_date, w_time) \
- ! (void)trap_14_www((short)(0x2f),(unsigned short)(w_date), \
- ! (unsigned short)(w_time))
- !
-
- #if defined(__cplusplus)
- }
- *** 1.1 1992/01/29 21:08:08
- --- ostruct.h 1992/03/06 19:33:37
- ***************
- *** 29,35 ****
- } _DOSTIME;
-
- /* Structure used by Fgetdta(), Fsetdta(), Fsfirst(), Fsnext() */
- ! struct _dta {
- char dta_buf[21]; /* reserved */
- char dta_attribute; /* file attribute */
- unsigned short dta_time; /* file time stamp */
- --- 29,35 ----
- } _DOSTIME;
-
- /* Structure used by Fgetdta(), Fsetdta(), Fsfirst(), Fsnext() */
- ! typedef struct _dta {
- char dta_buf[21]; /* reserved */
- char dta_attribute; /* file attribute */
- unsigned short dta_time; /* file time stamp */
- ***************
- *** 36,42 ****
- unsigned short dta_date; /* file date stamp */
- long dta_size; /* file size */
- char dta_name[14]; /* file name */
- ! };
-
- /* Codes used with Fsfirst() */
-
- --- 36,42 ----
- unsigned short dta_date; /* file date stamp */
- long dta_size; /* file size */
- char dta_name[14]; /* file name */
- ! } _DTA;
-
- /* Codes used with Fsfirst() */
-
- *** 1.18 1991/09/24 17:05:40
- --- string.h 1992/03/06 19:33:42
- ***************
- *** 68,76 ****
- __EXTERN int bcmp __PROTO((const void *src, const void *dst, size_t n));
- __EXTERN void bzero __PROTO((void *b, size_t n));
- #ifdef __MSHORT__
- ! __EXTERN void lbcopy __PROTO((const void *src, void *dst, long length));
- ! __EXTERN int lbcmp __PROTO((const void *s1, const void *s2, long length));
- ! __EXTERN void lbzero __PROTO((void *dst, long length));
- #endif /* __MSHORT__ */
- #endif /* __STRICT_ANSI__ */
-
- --- 68,76 ----
- __EXTERN int bcmp __PROTO((const void *src, const void *dst, size_t n));
- __EXTERN void bzero __PROTO((void *b, size_t n));
- #ifdef __MSHORT__
- ! __EXTERN void lbcopy __PROTO((const void *src, void *dst, size_t length));
- ! __EXTERN int lbcmp __PROTO((const void *s1, const void *s2, size_t length));
- ! __EXTERN void lbzero __PROTO((void *dst, size_t length));
- #endif /* __MSHORT__ */
- #endif /* __STRICT_ANSI__ */
-
- *** 1.7 1991/12/26 16:23:20
- --- unistd.h 1992/03/06 19:33:44
- ***************
- *** 37,50 ****
- #if 0
- #define _POSIX_VERSION 0L /* <- NON-CONFORMING */
- #endif
- ! #define _POSIX_CHOWN_RESTRICTED -1 /* doesn't matter anyways */
- #define _POSIX_NO_TRUNC -1
- ! #define _POSIX_VDISABLE 255
-
- /* 1003.1 section 8.2.1.2 */
- #define STDIN_FILENO 0
- #define STDOUT_FILENO 1
- #define STDERR_FILENO 2
-
- __EXTERN __EXITING _exit __PROTO((int));
- __EXTERN int access __PROTO((const char *, int));
- --- 37,59 ----
- #if 0
- #define _POSIX_VERSION 0L /* <- NON-CONFORMING */
- #endif
- ! #define _POSIX_CHOWN_RESTRICTED 0 /* doesn't matter anyways */
- #define _POSIX_NO_TRUNC -1
- ! #define _POSIX_VDISABLE 0
-
- /* 1003.1 section 8.2.1.2 */
- #define STDIN_FILENO 0
- #define STDOUT_FILENO 1
- #define STDERR_FILENO 2
- +
- + #ifdef __MINT__
- + /* flock() commands */
- + # define F_ULOCK 0 /* unlock */
- + # define F_LOCK 1 /* lock */
- + # define F_TLOCK 2 /* test and lock (non-blocking) */
- + # define F_TEST 3 /* test */
- + __EXTERN int lockf __PROTO((int, int, long));
- + #endif
-
- __EXTERN __EXITING _exit __PROTO((int));
- __EXTERN int access __PROTO((const char *, int));
-